package com.polaris.live.utils

import com.polaris.live.common.cacha.CacheUtil
import com.polaris.live.common.util.ReflexUtils
import com.polaris.live.resp.go_resp.GoConfigPostBean
import com.polaris.live.resp.go_resp.GoConfigPreBean

/**
 * SetMapData
 *
 * @author Created by 半仙 on 2023/8/9 15:32
 * @since 1.0.0
 */
object SetMapData {

    fun genPreMap(): Map<String, Any?> {
        return ReflexUtils.toMap(GoConfigPreBean())
    }

    fun genPostMap(): Map<String, Any?> {
        val configPostRequest = GoConfigPostBean()
        configPostRequest.configVersion = CacheUtil.getConfigVersionFromKV()
        return ReflexUtils.toMap(configPostRequest)
    }
}